package org.lg.framework;

import java.util.Arrays;

public class Invocation {
    private String interFaceName;//接口类名
    private String methodName;//方法名
    private Class[] paramTypes;//参数类型集合
    private Object[] paramValues;//参数值集合

    public Invocation() {
    }

    public Invocation(String interFaceName, String methodName, Class[] paramTypes, Object[] paramValues) {
        this.interFaceName = interFaceName;
        this.methodName = methodName;
        this.paramTypes = paramTypes;
        this.paramValues = paramValues;
    }

    public String getInterFaceName() {
        return interFaceName;
    }

    public void setInterFaceName(String interFaceName) {
        this.interFaceName = interFaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class[] getParamTypes() {
        return paramTypes;
    }

    public void setParamTypes(Class[] paramTypes) {
        this.paramTypes = paramTypes;
    }

    public Object[] getParamValues() {
        return paramValues;
    }

    public void setParamValues(Object[] paramValues) {
        this.paramValues = paramValues;
    }
    @Override
    public String toString() {
        return "Invocation{" +
                "interFaceName='" + interFaceName + '\'' +
                ", methodName='" + methodName + '\'' +
                ", paramTypes=" + Arrays.toString(paramTypes) +
                ", paramValues=" + Arrays.toString(paramValues) +
                '}';
    }
}
